#include "FileManagerStub.h"


FileManagerStub::FileManagerStub(void): FileManager("")
{
}


FileManagerStub::~FileManagerStub(void)
{
}

void FileManagerStub::updateFromVector(vector<Entry*> entries) {
	_entries= entries;
}

vector<Entry*> FileManagerStub::getEntries() {//creates a new set of vector of pointers
	for(int i=0; i<_entries.size(); i++) {
		if(_entries[i]->getEntryType() == CommonUtils::ENTRY_TYPE_TASK) {
			_entries[i] = new Task((_entries[i]));
		} else{
			_entries[i] = new Event((_entries[i]));
		}
	}
	return _entries;
}